/**
 * {作业名称}
 *
 * 输入参数:
 *
 * 输出参数:
 *
 */
(function () {
  A.job.Schedule({ Action: 'Start' });

  // 执行其他包中的OnMetaServerStarted作业
  const { rows } = A.db.execute('KERNEL', `SELECT KFB.MC FROM KFB, ZY WHERE KFB.ID=ZY.KFB_ID AND KFB.MC <> 'Kernel' AND ZY.MC='OnMetaServerStarted'`);
  rows.forEach(row => {
    try {
      A.job[`${row.MC}.OnMetaServerStarted`]();
    } catch (e) {
      Logger.Error(e.stack);
    }
  });
})